package br.fmapn.register;
import java.util.List;

import javax.ejb.Remote;

import br.fmapn.exceptions.BusinessOperationNotFoundException;
import br.fmapn.exceptions.BusinessProcessNotFoundException;
import br.fmapn.process.entities.BusinessOperation;
import br.fmapn.process.entities.BusinessProcess;

@Remote
/**
 * Remote interface for REGISTER module
 * @author Fellipe
 */
public interface BusinessProcessServicesRemote {
	public void saveBusinessOperation(BusinessOperation businessOperation);
	public void removeBusinessOperation(int idBO) throws BusinessOperationNotFoundException;
	public List<BusinessOperation> getBusinessOperations();
	public List<BusinessOperation> getBusinessOperationsByBusinessProcess(int idBP);
	public void saveBusinessProcess(BusinessProcess businessProcess);
	public void removeBusinessProcess(int idBP) throws BusinessProcessNotFoundException;
	public List<BusinessProcess> getBusinessProcesses();
}
